/* 
 * File:   ThreadPool.h
 * Author: bastien
 *
 * Created on 21 octobre 2010, 15:29
 */

#ifndef THREADPOOL_H
#define	THREADPOOL_H

#ifndef USEOF_THREADPOOL
#define USEOF_THREADPOOL
#endif

#include <vector>

#include "ThreadAble.h"

class ThreadAble;

class ThreadPool {
public:
    ThreadPool();
    virtual ~ThreadPool();

    void registerThread(ThreadAble*);
    bool unregisterThread(ThreadAble*);

private:
    ThreadPool(const ThreadPool& orig);

    std::vector<ThreadAble*> listofthread;
    std::vector<ThreadAble*>::iterator it;
};

#endif	/* THREADPOOL_H */

